package com.migu.rbac.message;

/**
 * @Description TODO :
 * @Author: zj
 * @Date: 14:26 2019/6/4
 * @Version 1.0
 **/

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(url = "${remote.sendMsg.ssoMessageUrlPrefix}", name = "sendMessage", fallbackFactory = RbacSendMsgFallback.class)
public interface RbacSendMsgService {
    @RequestMapping(value = "${remote.sendMsg.ssoMessageUrlSuffix}", method = RequestMethod.POST)
    String sendMessage(@RequestParam Map<String, Object> map);

}
